/*
 * 作者: 侯晓宇
 * 时间: 2017-03-11 
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require) {
	
	require("jquery");

	var c = require('app/utils/CommonUtils');
	var APIUtils = require('app/utils/APIUtils');
	var appInfo = require('app/AppInfo');
	var action_search = require('app/action/SearchIconFrmAction');
	var param = api.pageParam;	
	
	$("#back").click(function(){
		api.closeWin({
	    });
	});
	
	$("#search_button").click(function(){
		action_search.openAdminUserSearch();
	});
	
	var tab = new auiTab({
        element:document.getElementById("tab"),
        index:1,
        repeatClick:true
    },function(ret){
        var index = ret.index;
        open(index);
    });
    
    
	var open = function(index){
		
		var height = APIUtils.winH() - c.remToPx(2.25+2.25+0.75);
		var p2 = param;
		p2.index = index;
		api.openFrame({
	        name: 'AdminUserFrm',
	        url: './AdminUserFrm.html',
	        rect: {
		        x:0,
		        y:APIUtils.winH() - height,
		        w:APIUtils.winW(),
		        h:height
	        },
	        pageParam: p2,
	        reload:true
        });
	}
	
    
    open(1);
    
	return;
});